package com.office.onlineInformation.unread.service;

import com.office.onlineInformation.unread.pojo.OaOnlineMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.office.util.PageModel;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 88168
 * @since 2022-10-25
 */
public interface UnsendService extends IService<OaOnlineMessage> {

    /**
     *  删除未读留言
     * @param informationId
     * @return
     */
    String deleteMessage(int informationId);

    /**
     * 更新未读留言
     * @param onlineMessage
     * @return
     */
    String updateMessage(OaOnlineMessage onlineMessage);

    /**
     * 查询未读留言
     * @param customManage
     * @param pageModel
     * @return
     */
    public PageModel<OaOnlineMessage> getList(OaOnlineMessage customManage, PageModel<OaOnlineMessage> pageModel);
    /**
     * 根据id查询留言
     * @param informationId
     * @return
     */
    OaOnlineMessage getById(int informationId);
}
